package com.example.micropoint.point.controller;

import com.example.common.core.common.R;
import com.example.micropoint.point.service.IPointInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/point")
public class PointController {

    @Autowired
    private IPointInfoService pointInfoService;

    /**
     * 赠送积分
     */
    @PostMapping("/add")
    public R addPoint(Integer uid,Integer pointType){
        pointInfoService.add(uid,pointType);
        return R.ok();
    }

}
